
public class HealthCare extends Person
{
	private String company;
	private String number;
	private boolean copay;
	private String location;
	public HealthCare(String c, String n, boolean co, String l, Person person)
	{
		super(person.getFirstName(), person.getMiddleOfName(),person.getLastName(),person.getSSN());
		company=c;
		number=n;
		copay=co;
		location=l;
	}
	public String getCompany()
	{
		return company;
	}
	public String getNumber()
	{
		return number;
	}
	public boolean getCopay()
	{
		return copay;
	}
	public String getLocation()
	{
		return location;
	}
	@Override public String toString()
	{
		return "Company: "+getCompany()+"\nNumber: "+getNumber()+"\nCopay: "+getCopay()+"\nLocation: "+getLocation();
	}
}